<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <meta name="description" content=""/>
    <meta name="author" content=""/>

    <title>后台管理——修改车讯</title>

    <!-- Bootstrap core CSS -->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
    <link th:href="@{/css/backstage_add.css}" rel="stylesheet"/>
</head>

<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header">
            <a href="#">汽车购票后台管理</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse manage navbar-right">
            <ul class="nav navbar-nav">
                <li class="actives"><a th:href="@{/ticket/index}">车讯管理</a></li>
                <li><a th:href="@{/customer/index}">用户管理</a></li>
            </ul>
            <div class="user">
                <a href="#">admin</a>
                <a href="#" th:href="@{/admin/login}">注销</a>
            </div>
        </div>
    </div>
</nav>

<div class="container-fluid" id="container-fluid">
    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
            <ul class="nav">
                <li class="active"><a th:href="@{/ticket/index}">车讯列表</a></li>
                <li><a th:href="@{/ticket/query}">车讯查询</a></li>
                <li><a th:href="@{/ticket/notice}">车讯公告</a></li>
            </ul>
        </div>
        <div class="col-md-10 col-md-offset-2 main">
            <form class="form-signin form-inline" th:action="@{/ticket/edit(id=${ticket.id})}" method="post">
                <h2>修改车讯</h2>
                <label>始发站： <input type="text" class="form-control" id="starting_station" name="starting_station"
                                   th:value="${ticket.starting_station}" readonly="readonly"/></label>
                <label>终点站：<input type="text" class="form-control" id="destination" name="destination"
                                  th:value="${ticket.destination}" readonly="readonly"/></label>
                <label>线路号：<input type="text" class="form-control" id="line_number" name="line_number"
                                  th:value="${ticket.line_number}" readonly="readonly"/></label>
                <label>&nbsp;车&nbsp;牌： &nbsp;<input type="text" class="form-control" id="pleat_number" name="pleat_number"
                                                    th:value="${ticket.pleat_number}" readonly="readonly"/></label>
                <label>&nbsp;日&nbsp;期： &nbsp;<input type="datetime-local" class="form-control" id="departure_time"
                                                    name="departure_time" th:value="${ticket.departure_time}" required/></label>
                <label>&nbsp;位&nbsp;置： &nbsp;<input type="text" class="form-control" id="seating" name="seating"
                                                    th:value="${ticket.seating}" readonly="readonly"/></label>
                <label>&nbsp;票&nbsp;价： &nbsp;<input type="text" class="form-control" id="ticket_price" name="ticket_price"
                                                    th:value="${ticket.ticket_price}" required/></label>
                <button class="btn btn-primary btn-block" type="submit">确&nbsp;定</button>
            </form>
        </div>
    </div>
</div>

<!-- Bootstrap core JavaScript
================================================== -->

<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

</body>
</html>
